package com.winteam.View;

import com.winteam.Controler.Select;

import javax.swing.*;
import java.awt.*;

public class ReservationAlter extends JFrame {
    private JPanel contentPane;
    private JTextField nametext;
    private JTextField iphonetext;
    private JTextField timetext;
    private JTextField savetimetext;
    Select select = new Select();
    /**
     * Create the frame.
     */
    public ReservationAlter() {
        setFont(new Font("宋体", Font.BOLD, 15));
        setTitle("添加预定");

        setSize(400, 600);
        setLocationRelativeTo(null);
        contentPane = new JPanel();
        contentPane.setBackground(new Color(231,215,183));

        contentPane.setLayout(null);
        setContentPane(contentPane);

        JPanel panel = new JPanel();
        panel.setBackground(new Color(199,183,143));
        panel.setBounds(0, 0, 382, 28);
        contentPane.add(panel);

        JLabel lblNewLabel = new JLabel("基本预定信息");
        panel.add(lblNewLabel);
        JLabel lblNewLabel_1 = new JLabel("宾客姓名:");
        lblNewLabel_1.setBounds(56, 67, 72, 18);
        contentPane.add(lblNewLabel_1);

        nametext = new JTextField();
        nametext.setBounds(129, 60, 158, 28);
        contentPane.add(nametext);
        nametext.setColumns(10);

        JLabel lblNewLabel_1_1 = new JLabel("宾客电话:");
        lblNewLabel_1_1.setBounds(56, 105, 72, 18);
        contentPane.add(lblNewLabel_1_1);

        iphonetext = new JTextField();
        iphonetext.setColumns(10);
        iphonetext.setBounds(129, 98, 158, 28);
        contentPane.add(iphonetext);

        JLabel lblNewLabel_1_1_1 = new JLabel("预定类型:");
        lblNewLabel_1_1_1.setBounds(56, 146, 72, 18);
        contentPane.add(lblNewLabel_1_1_1);

        JLabel lblNewLabel_1_1_1_1 = new JLabel("房间编号:");
        lblNewLabel_1_1_1_1.setBounds(56, 194, 72, 18);
        contentPane.add(lblNewLabel_1_1_1_1);

        JLabel lblNewLabel_1_1_1_2 = new JLabel("预定时间:");
        lblNewLabel_1_1_1_2.setBounds(56, 245, 72, 18);
        contentPane.add(lblNewLabel_1_1_1_2);

        timetext = new JTextField();
        timetext.setColumns(10);
        timetext.setBounds(129, 238, 158, 28);
        contentPane.add(timetext);

        JLabel lblNewLabel_1_1_1_3 = new JLabel("保留时间:");
        lblNewLabel_1_1_1_3.setBounds(56, 298, 72, 18);
        contentPane.add(lblNewLabel_1_1_1_3);

        savetimetext = new JTextField();
        savetimetext.setColumns(10);
        savetimetext.setBounds(129, 291, 158, 28);
        contentPane.add(savetimetext);

        JComboBox comboBox = new JComboBox();
        comboBox.setBounds(129, 142, 158, 24);
        contentPane.add(comboBox);

        JComboBox comboBox_1 = new JComboBox();
        comboBox_1.setBounds(129, 191, 158, 24);
        contentPane.add(comboBox_1);

        JLabel label = new JLabel("备注:");
        label.setBounds(56, 397, 72, 18);
        contentPane.add(label);

        JTextArea textArea = new JTextArea();
        textArea.setBounds(129, 358, 158, 78);
        contentPane.add(textArea);

        JButton btnNewButton = new JButton(" 保存",new ImageIcon(getClass().getResource("img/save.gif")));

        btnNewButton.setBounds(56, 487, 88, 38);
        contentPane.add(btnNewButton);

        JButton btnNewButton_1 = new JButton("取消",new ImageIcon(getClass().getResource("img/cancel.gif")));

        btnNewButton_1.setBounds(193, 487, 88, 38);
        contentPane.add(btnNewButton_1);
        setVisible(true);

    }
    public static void main(String[] args) {
        new ReservationAlter();
    }
}
